package consultasBD;

public class ObtenerProxy implements consultasBD.Obtener {
  private String _endpoint = null;
  private consultasBD.Obtener obtener = null;
  
  public ObtenerProxy() {
    _initObtenerProxy();
  }
  
  public ObtenerProxy(String endpoint) {
    _endpoint = endpoint;
    _initObtenerProxy();
  }
  
  private void _initObtenerProxy() {
    try {
      obtener = (new consultasBD.ObtenerServiceLocator()).getObtener();
      if (obtener != null) {
        if (_endpoint != null)
          ((javax.xml.rpc.Stub)obtener)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
        else
          _endpoint = (String)((javax.xml.rpc.Stub)obtener)._getProperty("javax.xml.rpc.service.endpoint.address");
      }
      
    }
    catch (javax.xml.rpc.ServiceException serviceException) {}
  }
  
  public String getEndpoint() {
    return _endpoint;
  }
  
  public void setEndpoint(String endpoint) {
    _endpoint = endpoint;
    if (obtener != null)
      ((javax.xml.rpc.Stub)obtener)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
    
  }
  
  public consultasBD.Obtener getObtener() {
    if (obtener == null)
      _initObtenerProxy();
    return obtener;
  }
  
  
}